// 服务
export class LoadingService {

    //region # 字段
    private loading:any;
    //endregion

    //region # 方法

    /**
     * 繁忙
     * @param busyContent - 繁忙内容
     * */
    public busy(busyContent:string):void {
        this.loading = ElLoading.service({
            lock: true,
            text: busyContent,
            background: 'rgba(255, 255, 255, 0.7)',
        })
    }

    /**
     * 闲置
     * */
    public idle():void {
        this.loading?.close()
    }

    //endregion

}